<?php
header('Content-Type:text/html;charset=utf-8');
$id=$_GET['id'];
require_once($_SERVER['DOCUMENT_ROOT'].'/public/func.php');
$config=require_once($_SERVER['DOCUMENT_ROOT'].'/public/config.php');
$rec=del($config,'classify',$id);
if($rec){
  echo "<script>alert('删除成功');window.location.href='/admin/classify/classify.php'</script>";
}else{
  echo $sql;die;
  echo "<script>alert('删除失败');window.location.href='/admin/classify/classify.php'</script>";
}
?>